<%@ Page Language="C#" MasterPageFile="~/asp_pages/Master.master" AutoEventWireup="true" CodeFile="CheckOut.aspx.cs" Inherits="asp_pages_CheckOut" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" Runat="Server">
<link rel="stylesheet" type="text/css" href="../styles/checkout.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h3>CHECK OUT</h3>
<h4>Shopping cart</h4>
<span>Order date: </span><asp:Label ID="lblOrderDate" runat="server" /><br />
<asp:Repeater ID="rptCheckOut" runat="server">
<ItemTemplate>
    <div id="item">
    <span>Item: </span><span class="clsBold"><%#Eval("Name") %></span><br />
    <span>Price: </span><span class="clsBold"><%#Eval("Price") %></span><br />
    <span>Quantity: </span><span class="clsBold"><%#Eval("Quantity") %></span>
    </div>
</ItemTemplate>

</asp:Repeater>
<span>Total: </span><asp:Label ID="lblTotal" runat="server" CssClass="clsBold"></asp:Label><br />
    <br />
    <hr />
    <h4>Customer information:</h4>
    Please fill the information below:<br />
    <span class="clsLabel">Customer name: </span><asp:TextBox ID="txtCustomerName" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCustomerName"
        ErrorMessage="Customer's name is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <span class="clsVPadding8"></span>
    <span class="clsLabel">Address: </span><asp:TextBox ID="txtAddress" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAddress"
        ErrorMessage="Address is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <span class="clsVPadding8"></span>
    <span class="clsLabel">Phone: </span><asp:TextBox ID="txtPhone" runat="server"/>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone"
        ErrorMessage="Phone number is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <span class="clsVPadding8"></span>
    <span class="clsLabel">Email: </span><asp:TextBox ID="txtEmail" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
        ErrorMessage="Email is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <span class="clsVPadding8"></span>
    <span class="clsLabel">Receiver address: </span><asp:TextBox ID="txtReceiverAddress" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtReceiverAddress"
        ErrorMessage="Receiver address is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <span class="clsVPadding8"></span>
    <span class="clsLabel">Credit card: </span><asp:TextBox ID="txtCreditCard" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCreditCard"
        ErrorMessage="Credit card number is required" ValidationGroup="A">*</asp:RequiredFieldValidator><br />
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="A" />
    <br />
    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />
    <span class="clsClearBoth"><asp:CheckBox ID="chkConfirm" runat="server" Text=" I agree to buy these items" /></span>
    <span class="clsVPadding8"></span>
    <asp:Button ID="btnFinish" runat="server" Text=" Finish " OnClick="btnFinish_Click"/>
</asp:Content>

